package com.yzy.soft.common.persistence.model;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 
 * </p>
 *
 * @author yinzhiyuan
 * @since 2018-01-03
 */
@TableName("expense")
public class Expense extends Model<Expense> {

    private static final long serialVersionUID = 1L;
	@TableId(value="id",type= IdType.UUID)
	private String id;
	private String name;
	private String number;
	private String remark;
	@TableField(fill= FieldFill.INSERT)
	private Date create;
	@TableField(fill= FieldFill.INSERT_UPDATE)
	private Date update;
	@TableField(value="businessId")
	private String businessId;
	@TableField(value = "userflag")
	private int userflag;
	@TableField(value = "deleteflag")
	@TableLogic
	private int deleteflag;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Date getCreate() {
		return create;
	}

	public void setCreate(Date create) {
		this.create = create;
	}

	public Date getUpdate() {
		return update;
	}

	public void setUpdate(Date update) {
		this.update = update;
	}

	public String getBusinessId() {
		return businessId;
	}

	public void setBusinessId(String businessId) {
		this.businessId = businessId;
	}

	public int getUserflag() {
		return userflag;
	}

	public void setUserflag(int userflag) {
		this.userflag = userflag;
	}

	public int getDeleteflag() {
		return deleteflag;
	}

	public void setDeleteflag(int deleteflag) {
		this.deleteflag = deleteflag;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Expense{" +
				"id='" + id + '\'' +
				", name='" + name + '\'' +
				", number='" + number + '\'' +
				", remark='" + remark + '\'' +
				", create=" + create +
				", update=" + update +
				", businessId='" + businessId + '\'' +
				", deleteflag=" + deleteflag +
				'}';
	}
}
